package com.sky.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.UUID;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderSubmitVO implements Serializable {

    public static String generateOrderId() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    //订单id
    private Long id;
    //订单号
    private String orderNumber= generateOrderId();

    //下单时间
    private LocalDateTime orderTime;
}
